package shun.demo.binder;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import org.apache.http.auth.NTUserPrincipal;
import shun.demo.AppContext;
import shun.demo.R;

/**
 * Created by chen on 3/18/14.
 */
public class WindowActivity extends Activity implements View.OnClickListener {

    private FloatWindow mWindow;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.window);
        ImageView imageView = new ImageView(this);
        imageView.setImageResource(R.drawable.ic_launcher);
        mWindow = new FloatWindow(AppContext.getInstance(), imageView, null);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.window:
                mWindow.show();
                break;
        }
    }
}